#ifndef XPENSRECORD_H
#define XPENSRECORD_H

#include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include "XpensItem.h"
#include "PaymentItem.h"
#include "Tracing.h"
#include "Search.h"

using namespace std;

class XpensRecord{
private:
	Tracing* xpensTracing;
	vector <string> ExpCategory;
	vector <string> PayCategory;
	int otherExp;
	int otherPay;
//	Search* mySearch;
public:
	XpensRecord();
//	bool deleteItem(Item&);
	void setCategory();
	bool createItem(Item&);
	bool updateItem(streamoff, Item&);
	void deleteExpCat(int);
	void deletePayCay(int);
	void showRecord();
	Tracing* getTracing();
	void saveExit();
};

#endif